#pragma once
#include "Timeline.hpp"
#include "Vector2.hpp"

namespace Typhoon {
	class Animation
	{
	public:
		Animation();
		~Animation();

		float Duration();

		Timeline<Vector2>& Position();
		Timeline<Vector2>& Scale();
		Timeline<float>& Rotation();

	private:

		Timeline<Vector2> position;
		Timeline<Vector2> scale;
		Timeline<float> rotation;

		bool isDirty;
		float duration;
		void CalcDuration();

	};
}

